package com.gildedrose;

import org.apache.commons.io.FileUtils;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

import java.io.File;
import java.io.IOException;
import java.nio.charset.Charset;



public class GildedRoseSafeNet {

    @Test
    public void should_always_align_with_baseline() throws IOException {
        String output = TextTestFixture.getBaseline();
        String baseline = FileUtils.readFileToString(new File("src/test/baseline.txt"), Charset.forName("UTF-8"));
        Assertions.assertEquals(output, baseline);
    }
}
